package com.ocr.utils;

import com.ocr.camera.R;

import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;

public class DialogUtils {

	public static void messageDialog(Context context, String title,
			String message) {

		AlertDialog alertDialog = new AlertDialog.Builder(context).create();
		alertDialog.setTitle(title);
		alertDialog.setMessage(message);
		alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog, int which) {
				// here you can add functions
				dialog.dismiss();
			}
		});
		alertDialog.setIcon(R.drawable.icon);
		alertDialog.show();

	}
}
